import Vue from 'vue'
import App from './App'

//引入 第三方模块：<span style="color: #f00">@escook/request-miniprogram</span>
import { $http } from '@escook/request-miniprogram'
uni.$http = $http

//配置项目基准地址
$http.baseUrl = 'https://www.uinav.com'

//配置请求拦截器
$http.beforeRequest = function (options) {  
    uni.showLoading({
    	title: '数据加载中...',
	})
}

//配置响应拦截器
$http.afterRequest = function () {  
    uni.hideLoading()
}

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
